﻿using System;
using System.ComponentModel.Composition;

namespace PluginFramework.Client
{
	[MetadataAttribute]
	[AttributeUsage(AttributeTargets.Class,AllowMultiple = false)]
	public class PluginInfoAttribute : ExportAttribute,IPluginMeta
	{
		/// <summary>
		/// 
		/// </summary>
		/// <param name="id">plugin id</param>
		/// <param name="package">Has to be the name of the plugin directory</param>
		/// <param name="version"></param>
		public PluginInfoAttribute(string id,string package,string version)
			: base(typeof(IPluginPart))
		{
			Id = id;
			Package = package;
			Version = version;
		}
		public string Id { get; set; }
		public string FriendlyName { get; set; }

		public string Description { get; set; }

		
		public string Package { get; set; }
		public string Version { get; set; }
		public string HelpUrl { get; set; }
	
	}
}
